Errorlevel is not % errorlevel %
Http://blogs.msdn.com/oldnewthing/archive/2008/09/26/8965755.aspx
The Command Interpretercmd.exeHas a concept known asError level, Which is the exit code of the program most recently run. You can test the error level
Basic syntax
Key See-B On Error batch abort and-m ERRORLEVEL
Runsql.bat@echo OFF:STARTCD%cd% @echo current directory is%cd% @echo start testing@echo good examplerem good SQL Sqlcmd-e-dmaster -q%1-w-b-m-1-h-1-s^|rem If the query or batch
Run the batch processing command ---- for, if, call, errorlevel, start
Sample: Move files in batches and display the files that have been moved. Different prompts are displayed for success and failure.
Emuleok. BAT:
First, the batch file is a text file, and each line of the file is a DOS command (most of the time, like the command line we execute at the DOS prompt), you can use the DOS edit or Windows Notepad (Notepad) Any text file Editing tool creates and
C # call. bat file
Use namespaces: Using System.Diagnostics;
System.Diagnostics.Process.Start (Server.MapPath ("Ah.bat"));
=====================================================================
The file with the extension is bat (either nt/2000/xp/200
Frequently-used commands echo, @, call, pause, and REM (TIPS: Use: instead of REM) are the most frequently-used commands for batch file processing. We started from them.
First, @ is not a command, but a special identifier for DOS batch processing.
Frequently-used commands echo, @, call, pause, and REM (TIPS: Use: instead of REM) are the most frequently-used commands for batch file processing. We started from them.
First, @ is not a command, but a special identifier for DOS batch processing.
First, the batch file is a text file, and each line of this file is a DOS command (most of the time it is like the command line we execute at the DOS prompt ), you can use any text file editing tool such as edit in DOS or notepad in Windows to
First, the batch processing file is a text file, and each line of this file is a DOS command (most of the time it is like the command line we execute at the DOS prompt ), you can use any text file editing tool such as Edit in DOS or notepad in
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.